<?php $this->load->view('includes/header');  
	$projects = $this->session->userdata('projects');
?>
<script>

$(document).ready(function(){
	loadUserProjects();
});
	
$(function() {
        $("#tabs").tabs();
        $(".nav-link")
                .click(function () {
                	window.location.href = CI.baseUrl + this.id;
                	// window.location = this.title;
                });
});
</script>

<div id="project-header">
	<div id="user_projects_container">
	</div>
</div>


<div id="tabs">
	<ul>
	    <li><a href="#tabs-1" title=" " id= " " class="nav-link">Current Sprint</a></li>
		<li><a href="#tabs-2" title="manage task" id= "index.php/tasks_controller/" class="nav-link">Tasks</a></li>
		
		<li><a href="#tabs-3" title="create task" id= "index.php/tasks_controller/create_view" class="nav-link">Create Task</a></li>
		<li><a href="#tabs-4" title=" " id= " " class="nav-link">Metrics</a></li>
		<li><a href="#tabs-5" title="manage users" id= "index.php/users_controller/" class="nav-link">Users</a></li>
		<li><a href="#tabs-6" title="manage sprints" id= "index.php/sprint" class="nav-link">Sprints</a></li>
		<li><a href="#tabs-7" title="manage projects" id= "index.php/project_controller" class="nav-link">Projects</a></li>
		<li><a href="#tabs-8" title="logout from system" id= "index.php/authentication_controller/logout/" class="nav-link"><?php echo $this->session->userdata('username') .' Logout'?></a></li>
	 
	</ul>
	<div id="tabs-1"></div>
	<div id="tabs-2"></div>
	<div id="tabs-3"></div>
	<div id="tabs-4"></div>
	<div id="tabs-5"></div>
	<div id="tabs-6"></div>
	<div id="tabs-7"></div>
	<div id="tabs-8"></div>
</div>




